import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css"
import "./registerServiceWorker";
import "./common/less/common.less"
import {registerMicroApps,start} from "qiankun"

Vue.config.productionTip = false;
Vue.use(ElementUI)

const apps = [
  {
    name:"custome-bill",
    entry:"//localhost:8082", // 默认会加载这个html 解析里面的js 动态的执行 （子应用必须支持跨域）
    fetch,
    container:"#custome-bill",
    activeRule:"/custome-bill"
  },
]

registerMicroApps(apps) // 注册应用
start({
  prefetch: false, // 取消预加载
}) // 开启

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
